﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200023F RID: 575
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueGiveUpRollScRsp : IMessage<ChessRogueGiveUpRollScRsp>, IMessage, IEquatable<ChessRogueGiveUpRollScRsp>, IDeepCloneable<ChessRogueGiveUpRollScRsp>, IBufferMessage
	{
		// Token: 0x170007A0 RID: 1952
		// (get) Token: 0x060019FD RID: 6653 RVA: 0x0004B153 File Offset: 0x00049353
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueGiveUpRollScRsp> Parser
		{
			get
			{
				return ChessRogueGiveUpRollScRsp._parser;
			}
		}

		// Token: 0x170007A1 RID: 1953
		// (get) Token: 0x060019FE RID: 6654 RVA: 0x0004B15A File Offset: 0x0004935A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueGiveUpRollScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170007A2 RID: 1954
		// (get) Token: 0x060019FF RID: 6655 RVA: 0x0004B16C File Offset: 0x0004936C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueGiveUpRollScRsp.Descriptor;
			}
		}

		// Token: 0x06001A00 RID: 6656 RVA: 0x0004B173 File Offset: 0x00049373
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGiveUpRollScRsp()
		{
		}

		// Token: 0x06001A01 RID: 6657 RVA: 0x0004B17C File Offset: 0x0004937C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGiveUpRollScRsp(ChessRogueGiveUpRollScRsp other) : this()
		{
			this.rogueDiceInfo_ = ((other.rogueDiceInfo_ != null) ? other.rogueDiceInfo_.Clone() : null);
			this.aJOHOAICBFD_ = ((other.aJOHOAICBFD_ != null) ? other.aJOHOAICBFD_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001A02 RID: 6658 RVA: 0x0004B1E4 File Offset: 0x000493E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGiveUpRollScRsp Clone()
		{
			return new ChessRogueGiveUpRollScRsp(this);
		}

		// Token: 0x170007A3 RID: 1955
		// (get) Token: 0x06001A03 RID: 6659 RVA: 0x0004B1EC File Offset: 0x000493EC
		// (set) Token: 0x06001A04 RID: 6660 RVA: 0x0004B1F4 File Offset: 0x000493F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDiceInfo RogueDiceInfo
		{
			get
			{
				return this.rogueDiceInfo_;
			}
			set
			{
				this.rogueDiceInfo_ = value;
			}
		}

		// Token: 0x170007A4 RID: 1956
		// (get) Token: 0x06001A05 RID: 6661 RVA: 0x0004B1FD File Offset: 0x000493FD
		// (set) Token: 0x06001A06 RID: 6662 RVA: 0x0004B205 File Offset: 0x00049405
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList AJOHOAICBFD
		{
			get
			{
				return this.aJOHOAICBFD_;
			}
			set
			{
				this.aJOHOAICBFD_ = value;
			}
		}

		// Token: 0x170007A5 RID: 1957
		// (get) Token: 0x06001A07 RID: 6663 RVA: 0x0004B20E File Offset: 0x0004940E
		// (set) Token: 0x06001A08 RID: 6664 RVA: 0x0004B216 File Offset: 0x00049416
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06001A09 RID: 6665 RVA: 0x0004B21F File Offset: 0x0004941F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueGiveUpRollScRsp);
		}

		// Token: 0x06001A0A RID: 6666 RVA: 0x0004B230 File Offset: 0x00049430
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueGiveUpRollScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RogueDiceInfo, other.RogueDiceInfo) && object.Equals(this.AJOHOAICBFD, other.AJOHOAICBFD) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001A0B RID: 6667 RVA: 0x0004B294 File Offset: 0x00049494
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueDiceInfo_ != null)
			{
				num ^= this.RogueDiceInfo.GetHashCode();
			}
			if (this.aJOHOAICBFD_ != null)
			{
				num ^= this.AJOHOAICBFD.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001A0C RID: 6668 RVA: 0x0004B2FF File Offset: 0x000494FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001A0D RID: 6669 RVA: 0x0004B307 File Offset: 0x00049507
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001A0E RID: 6670 RVA: 0x0004B310 File Offset: 0x00049510
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.aJOHOAICBFD_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.AJOHOAICBFD);
			}
			if (this.rogueDiceInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.RogueDiceInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001A0F RID: 6671 RVA: 0x0004B388 File Offset: 0x00049588
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueDiceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueDiceInfo);
			}
			if (this.aJOHOAICBFD_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.AJOHOAICBFD);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001A10 RID: 6672 RVA: 0x0004B3F8 File Offset: 0x000495F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueGiveUpRollScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueDiceInfo_ != null)
			{
				if (this.rogueDiceInfo_ == null)
				{
					this.RogueDiceInfo = new ChessRogueDiceInfo();
				}
				this.RogueDiceInfo.MergeFrom(other.RogueDiceInfo);
			}
			if (other.aJOHOAICBFD_ != null)
			{
				if (this.aJOHOAICBFD_ == null)
				{
					this.AJOHOAICBFD = new ItemList();
				}
				this.AJOHOAICBFD.MergeFrom(other.AJOHOAICBFD);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001A11 RID: 6673 RVA: 0x0004B48C File Offset: 0x0004968C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001A12 RID: 6674 RVA: 0x0004B498 File Offset: 0x00049698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 50U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.rogueDiceInfo_ == null)
						{
							this.RogueDiceInfo = new ChessRogueDiceInfo();
						}
						input.ReadMessage(this.RogueDiceInfo);
					}
				}
				else
				{
					if (this.aJOHOAICBFD_ == null)
					{
						this.AJOHOAICBFD = new ItemList();
					}
					input.ReadMessage(this.AJOHOAICBFD);
				}
			}
		}

		// Token: 0x04000AE9 RID: 2793
		private static readonly MessageParser<ChessRogueGiveUpRollScRsp> _parser = new MessageParser<ChessRogueGiveUpRollScRsp>(() => new ChessRogueGiveUpRollScRsp());

		// Token: 0x04000AEA RID: 2794
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000AEB RID: 2795
		public const int RogueDiceInfoFieldNumber = 6;

		// Token: 0x04000AEC RID: 2796
		private ChessRogueDiceInfo rogueDiceInfo_;

		// Token: 0x04000AED RID: 2797
		public const int AJOHOAICBFDFieldNumber = 5;

		// Token: 0x04000AEE RID: 2798
		private ItemList aJOHOAICBFD_;

		// Token: 0x04000AEF RID: 2799
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04000AF0 RID: 2800
		private uint retcode_;
	}
}
